package demoMod.stsconsole.powers;

import demoMod.stsconsole.cards.AbstractCard;
import demoMod.stsconsole.core.AbstractCreature;
import demoMod.stsconsole.interfaces.ExhaustCardSubscriber;

public class FeelNoPainPower extends AbstractPower implements ExhaustCardSubscriber {
    public static final String ID = "FeelNoPainPower";

    public FeelNoPainPower(AbstractCreature owner, int amount) {
        super(ID, owner, amount);
    }

    @Override
    public void onExhaustCard(AbstractCard card) {
        owner.gainBlock(this.amount[0]);
    }

    @Override
    public String getUpdatedDescriptions() {
        return String.format(this.description, this.amount[0]);
    }
}
